]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
texture-cache: Apply resource scale to the right dimension
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Mar 2019 20:39:42 +0000 (21:39 +0100)
committerMarco Trevisan <mail@3v1n0.net>
Tue, 12 Mar 2019 00:48:11 +0000 (00:48 +0000)
Size matters!

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/444

src/st/st-texture-cache.c

index 61f76accc04535a42ba748b203f65f2052fb1f6a..cbe3afaba13f1c2924dd61aec3fb7e1bd82a7102 100644 (file)
@@ -502,7 +502,7 @@ pixbuf_to_st_content_image (GdkPixbuf *pixbuf,
     width *= paint_scale;
 
   if (height < 0)
-    height = ceilf (gdk_pixbuf_get_width (pixbuf) / resource_scale);
+    height = ceilf (gdk_pixbuf_get_height (pixbuf) / resource_scale);
   else
     height *= paint_scale;